package com.ruoyi.common.base.ai.mapstruct;

import com.ruoyi.common.base.ai.domain.AIApiKey;
import com.ruoyi.common.base.ai.vo.AIApiKeyCache;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * ChatMessageStruct
 *
 * @author gdk
 * @version 1.0.0
 * @since 2022/2/8 3:04
 */
@Mapper
public interface AIApiKeyStruct {
    AIApiKeyStruct INSTANCE = Mappers.getMapper(AIApiKeyStruct.class);

    /**
     * AIApiKey -> AIApiKeyCache
     *
     * @param entity entity
     * @return {@link AIApiKeyCache}
     * @author gdk
     * @since 2022/2/8
     */
    AIApiKeyCache entity2Cache(AIApiKey entity);

    /**
     * AIApiKeyCache -> AIApiKey
     *
     * @param cache cache
     * @return {@link AIApiKeyCache}
     * @author gdk
     * @since 2022/2/8
     */
    AIApiKey cache2Entity(AIApiKeyCache cache);
}
